<%@page import="com.fasterxml.jackson.annotation.JsonInclude.Include"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html lang="zh-CN">
	<%@ include file="/WEB-INF/include-head.jsp" %>
  <body>
  		<%@ include file="/WEB-INF/include-nav.jsp" %>
	<div class="container-fluid">
		<%@ include file="/WEB-INF/include-sidebar.jsp"%>

		<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
			<ol class="breadcrumb">
				<li><a href="sheng/to/main/page.ht">首页</a></li>
				<li><a href="sheng/get/page.ht">数据列表</a></li>
				<li class="active">修改/编辑</li>
			</ol>
			<div class="panel panel-default">
				<div class="panel-heading">
					表单数据
					<div style="float: right; cursor: pointer;" data-toggle="modal"
						data-target="#myModal">
						<i class="glyphicon glyphicon-question-sign"></i>
					</div>
				</div>
				<div class="panel-body">
					<form action="sheng/do/edit.ht" method="post" role="form">
					<!-- 把后台返回的域对象数据 放 隐藏域里面待会备用 -->
					<!-- 隐藏域的使用 -->
					<input type="hidden" name="shengid" value="${requestScope.sheng.shengid}">
					<input  name="pageNum" value="${param.pageNum}">
					<input  name="keyword" value="${param.keyword}">
					<%-- 这里不能用${requestScope.pageInfo.pageNum}的原因是域对象只一次生效 --%>
					<input  name="pageNum" value="${requestScope.pageInfo.pageNum}">
					
					<p style="color: red">${requestScope.exception.message } </p>
					
						<div class="form-group">
							<label for="exampleInputPassword1">省份名称</label> 
							<input name="shengName" type="text"class="form-control" id="exampleInputPassword1"
								   placeholder="请输入要修改的省份名称，不可重复" value="${requestScope.sheng.shengName}">
						</div>
						<button type="submit" class="btn btn-success">
							<i class="glyphicon glyphicon-edit"></i> 确认修改
						</button>
						<button type="reset" class="btn btn-danger">
							<i class="glyphicon glyphicon-refresh"></i> 重置
						</button>
					</form>
				</div>
			</div>
		</div>
		
	</div>
</body>
</html>
